<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/6
 * Time: 15:05
 */
namespace app\admin\controller;
use  think\Controller;
use  think\Db;

class  Labmanage extends  Controller
{

    public function index()
    {
      $lablist = Db::table("labs")->join('labtype','labs.typeid=labtype.typeid')->paginate(10,20);
     $page = $lablist->render();

      $this->assign('lablist',$lablist);
        $this->assign('page', $page);
        return $this->fetch();
    }
}

?>